#ifndef PARCOURS_H
#define PARCOURS_H

#include <QThread>
#include <QHash>
#include <QProcess>
#include <QFile>
#include <QTextStream>
#include <QHash>
#include <QList>
#include "adress.h"
#include "database_manager.h"

class Parcours : public QThread
{
    Q_OBJECT
private:
    Database_manager * database_manager;
    QHash<int, long> input_steps;
    QHash<int, Adress *> * output_steps;
public:
    explicit Parcours(Database_manager * database_manager,  QObject *parent = 0);
    void run();
    void reinit();
    void setSteps(QHash<int, long> steps);
    void parse();
    void get_Info_Adress(Adress & a, long id);
    QHash<int, Adress *> * get_output_steps(){ return output_steps; }
signals:
    void Search_Sucess();
    void Search_Fail(QString message);
public slots:

};

#endif // PARCOURS_H
